﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <!-- custom -->
    <link href="css/add-style.css" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div id="part1" class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>组织机构</h5>
                </div>
                <div class="ibox-content">
                    <div id="jstree2" style="margin: 10px 0 0 -10px;">

                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-9">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>房间列表</h5>
                    <div class="pull-right" style="margin: -7px 5px 0 0">
                        <button class="btn btn-info btn-sm" type="button"><i class="fa fa-random"></i><span class="bold">&nbsp;导出</span></button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-border0">
                        <tbody>
                            <tr>
                                <td class="client-link text-right">楼栋名称：</td>
                                <td>
                                    <select data-placeholder="选择项目属性" class="chosen-select form-control w200" tabindex="2">
                                        <option value="" selected="selected">选择楼栋</option>
                                        <option value="110000" hassubinfo="true">A01</option>
                                        <option value="120000" hassubinfo="true">A02</option>
                                    </select>
                                </td>
                                <td class="client-link text-right">楼栋名称：</td>
                                <td>
                                    <select data-placeholder="选择项目属性" class="chosen-select form-control w200" tabindex="2">
                                        <option value="" selected="selected">选择楼栋</option>
                                        <option value="110000" hassubinfo="true">A01</option>
                                        <option value="120000" hassubinfo="true">A02</option>
                                    </select>
                                    <button type="button" class="btn btn-success btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>状态</th>
                                <th>所属机构</th>
                                <th>项目名称</th>
                                <th>楼栋名称</th>
                                <th>楼层</th>
                                <th>房号</th>
                                <th>建筑面积</th>
                                <th>是否空置</th>
                                <th>是否商用</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td><span class="label label-primary">已入住</span></td>
                            <td>华北区域 - 北京公司 - 富力湾服务中心</td>
                            <td>富力湾</td>
                            <td>A01</td>
                            <td>3</td>
                            <td>302</td>
                            <td>100</td>
                            <td>是</td>
                            <td>是</td>
                            <td>
                                <div class="btn-group">
                                    <a href="#" class="text-info">详情</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" class="text-warning">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="javascript:;" class="text-danger demo4">删除</a>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="text-right">
                        <ul class="pagination">
                            <li><a href="#">«</a></li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">5</a></li>
                            <li><a href="#">»</a></li>
                            <li><a href="#">页数：1/10</a></li>
                            <li><a href="#">总记录数：1000</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<!-- jsTree plugin javascript -->
<script src="js/plugins/jsTree/jstree.min.js"></script>

<style>
    .jstree-open > .jstree-anchor > .fa-folder:before {
        content: "\f07c";
    }

    .jstree-default .jstree-icon.none {
        width: 0;
    }
</style>
<!--控制页面树元素-->
<script>
	$(document).ready(function () {
		function demo_rename() {
			var ref = $('#jstree2').jstree(true),
				sel = ref.get_selected();
			if (!sel.length) { return false; }
			sel = sel[0];
			ref.edit(sel);
		};
		$('#jstree2').jstree({
			'core': {
				'check_callback': true,
				'data' : {
					'url' : '/js/demo/tree1.json',
					'data' : function (node) {
						return { 'id' : node.id };
					},
					'dataFilter': function (data) {
						var arr = JSON.parse(data);
						var newarr = [];
						for (var i = 0; i < arr.length; i++) {
							if (arr[i].icon) {
								var icon = arr[i].icon;
								for (var j = 1; j < 4; j++) {
									var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
										var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
										return v.toString(16);
									})
									newarr.push({id:uuid, text:'测试楼栋' + j, parent:arr[i].id, icon:icon});
								}
								delete arr[i].icon;
							}
						}
						return JSON.stringify(arr.concat(newarr));
					}
				}
			},
			'plugins': ['types', 'dnd'],
			'types': {
				'default': {
					'icon': 'fa fa-folder'
				},
				'html': {
					'icon': 'fa fa-file-code-o'
				},
				'svg': {
					'icon': 'fa fa-file-picture-o'
				},
				'css': {
					'icon': 'fa fa-file-code-o'
				},
				'img': {
					'icon': 'fa fa-file-image-o'
				},
				'son': {
					'icon': 'fa fa-file-text-o'
				}

			}
		});
	});


</script>

<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>
<script type="text/javascript">
	// 使页面中所有.modal元素在窗口可视范围之内居中

	function centerModals() {
		$('.modal').each(function (i) {
			var $clone = $(this).clone().css('display', 'block').appendTo('body');
			var top = Math.round(($clone.height() - $clone.find('.modal-content').height()) / 2);
			top = top > 50 ? top : 0;
			$clone.remove();
			$(this).find('.modal-content').css("margin-top", top - 50);
		});
	}
	// 在模态框出现的时候调用垂直居中函数

	$('.modal').on('show.bs.modal', centerModals);
	// 在窗口大小改变的时候调用垂直居中函数

	$(window).on('resize', centerModals);


	//--动画效果--
	$(document).ready(function () {
		$('.contact-box').each(function () {
			animationHover(this, 'pulse');
		});
	});
</script>
<!-- Sweet alert -->
<script src="js/plugins/sweetalert/sweetalert.min.js"></script>
<script>
	//-- 小弹框--
	$('.demo2').click(function () {

		swal({
			title: "保存成功！",
			type: "success"
		});
	});

	$('.demo4').click(function () {
		swal({
			title: "您确定要删除这条信息吗",
			text: "删除后将无法恢复，请谨慎操作！",
			type: "warning",
			showCancelButton: true,
			confirmButtonColor: "#DD6B55",
			confirmButtonText: "删除",
			closeOnConfirm: false
		}, function () {
			swal("删除成功！", "您已经永久删除了这条信息。", "success");
		});
	});
</script>
</body>

</html>
